package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 资产维护保养对象 sys_asset_maintenance
 * 
 * @author sxy
 * @date 2025-03-26
 */
public class SysAssetMaintenance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维护ID */
    private Long maintenanceId;

    /** 资产ID */
    @Excel(name = "资产ID")
    private Long assetId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetNo;

    public String getAssetNo() {
        return assetNo;
    }

    public void setAssetNo(String assetNo) {
        this.assetNo = assetNo;
    }

    /** 维护日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维护日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceDate;

    /** 维护类型 */
    @Excel(name = "维护类型")
    private String maintenanceType;

    /** 维护成本 */
    @Excel(name = "维护成本")
    private BigDecimal cost;

    /** 维护描述 */
    @Excel(name = "维护描述")
    private String description;

    /** 维护人员姓名 */
    @Excel(name = "维护人员姓名")
    private String operatorName;

    /** 维护人员电话 */
    @Excel(name = "维护人员电话")
    private String operatorPhone;

    /** 下次维护日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次维护日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextMaintenanceDate;

    public void setMaintenanceId(Long maintenanceId) 
    {
        this.maintenanceId = maintenanceId;
    }

    public Long getMaintenanceId() 
    {
        return maintenanceId;
    }
    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }
    public void setMaintenanceDate(Date maintenanceDate) 
    {
        this.maintenanceDate = maintenanceDate;
    }

    public Date getMaintenanceDate() 
    {
        return maintenanceDate;
    }
    public void setMaintenanceType(String maintenanceType) 
    {
        this.maintenanceType = maintenanceType;
    }

    public String getMaintenanceType() 
    {
        return maintenanceType;
    }
    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setOperatorName(String operatorName) 
    {
        this.operatorName = operatorName;
    }

    public String getOperatorName() 
    {
        return operatorName;
    }
    public void setOperatorPhone(String operatorPhone) 
    {
        this.operatorPhone = operatorPhone;
    }

    public String getOperatorPhone() 
    {
        return operatorPhone;
    }
    public void setNextMaintenanceDate(Date nextMaintenanceDate) 
    {
        this.nextMaintenanceDate = nextMaintenanceDate;
    }

    public Date getNextMaintenanceDate() 
    {
        return nextMaintenanceDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintenanceId", getMaintenanceId())
            .append("assetId", getAssetId())
                .append("assetNo", getAssetNo())
            .append("maintenanceDate", getMaintenanceDate())
            .append("maintenanceType", getMaintenanceType())
            .append("cost", getCost())
            .append("description", getDescription())
            .append("operatorName", getOperatorName())
            .append("operatorPhone", getOperatorPhone())
            .append("nextMaintenanceDate", getNextMaintenanceDate())
            .toString();
    }
}
